@import "libs.less";
@import "config.less";
@import "build.less";
@import "dashboard.less";
@import "projects.less";
@import "admin/users.less";
@import "admin/plugins.less";

@import "strider-colors.less";
@import "alerts.less";

html, body {
  height: 100%;
}

body {
  background-color: #fff;
  font-family: 'Source Sans Pro', sans-serif;
}

h3 {
  font-weight: normal;
}

.wrap {
  min-height: 100% !important;
}

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak],
.ng-cloak, .x-ng-cloak {
  display: none !important;
}

.truncate {
  width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#kickoff-app {
  .github-main-content p,
  .github-main-content {
    font-size: 18px;
    line-height: 26px;
  }
}

// Make the console output and past builds fill the full height of the browser.
.job_view {
  height: 100%;
  .wrap {
    height: 98%;
    .content {
      height: 100%;
      .body-content {
        height: 100%;
        > .row-fluid {
          height: 100%;
          .span12 {
            height: 100%;
            .app {
              height: 100%;
              #build-page {
                height: 100%;
                > div {
                  height: 100%;
                  .job-main {
                    height: 95%;
                    padding-bottom: 20px;
                    .job-wrap {
                      height: 100%;
                      .job-left-col {
                        height: 100%;
                      }
                    }
                  }
                  .job-detail-sidebar {
                    height: 100%;
                    #list-of-builds {
                      height: 96%;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

#build-page {
  .job-title h3 {
    .test-only-action {
      color: green;
    }

    .test-and-deploy-action {
      color: rgb(41, 0, 255);
    }
  }

  #list-of-builds {
    overflow: auto;

    table {
      margin-bottom: 0;
      td {
        vertical-align: middle;
      }
    }

    td.committer {
      padding: 0;
      img {
        margin-top: 4px;
        height: 25px;
        width: 25px;
        max-width: inherit;
      }
      @media (max-width: 1400px) {
        display: none;
      }
    }
    tr {
      background-color: transparent;
      cursor: pointer;
    }
    .active.failed {
      background-color: @strider-bg-failed;
    }
    .active.errored {
      background-color: @strider-bg-errored;
    }
    .active.passed {
      background-color: @strider-bg-passed;
    }
    .active.running {
      background-color: @strider-bg-running;
    }
    tr:hover {
      background-color: #eee;
    }

    // For the commit message, we want to use the available space as well as possible.
    // We attempt to use the best possible width for different screen sizes.
    .commit-url {
      max-width: 416px;
      .truncate {
        max-width: 110px;
        @media (min-width: 1400px) {
          max-width: 136px;
        }
        @media (min-width: 1600px) {
          max-width: 115px;
        }
        @media (min-width: 2048px) {
          max-width: 276px;
        }
      }
    }

    // Hide the "finished at" time on small screens
    .finished-at {
      min-width: 100px;
      text-align: center;
      @media(max-width: 1600px){
        min-width: 16px;
      }
    }

    // The summary classes allow you to toggle between a short and a long version of a column
    .summary-icon {
      display: inline-block;
      @media(min-width: 1600px){
        display: none;
      }
    }
    .summary-text {
      display: none;
      @media(min-width: 1600px){
        display: inline-block;
      }
    }
  }
  .job-link {
    min-width: 80px;
  }
  .run-time {
    text-align: center;
  }
  .summary-icon {
    display: none;
  }
}

.last-builds {
  border-collapse: separate;
  border-spacing: 2px;
  margin: 9px;
  .status-passed { background-color: @strider-bg-passed; }
  .status-failed { background-color: @strider-bg-failed; }
  .status-errored { background-color: @strider-bg-errored; }
}

.progress {
  margin-bottom: 0;
}

.dashboard-row,
#dashboard table tr {
  padding: 10px 0;
  .action-buttons {
    div {
      visibility: hidden;
    }
  }
  td {
    padding: 10px 0;
    position: relative;
    font-size: 16px;
    a:hover {
      text-decoration: none;
    }
  }

  td > a,
  td > span {
    display: inline-block;
    padding: 5px 10px;
  }
  span.clickable,
  a {
    color: black;
    cursor: pointer;
  }
  .github-link {
    width: 1px;
  }
  &:hover {
    .action-buttons {
      & > div {
        visibility: visible;
      }
    }
  }
  .small-text {
    display: inline-block;
  }
  .action-buttons {
    width: 100px;
    text-align: center;
    .btn-group {
      padding-top: 4px;
    }
  }
  .progress-meter {
    .progress {
      margin-bottom: 0;
    }
  }
  .committer {
    a {
      padding: 0;
    }
    img {
      width: 35px;
      height: 35px;
      max-width: inherit;
      margin-bottom: -13px;
      margin-top: -1px;
    }
  }
  .project-name {
    a {
      font-size: 18px;
      line-height: 27px;
      width: 100%;
    }
  }
  .run-time {
    text-align: center;
  }
  i {
    font-size: 150%;
  }
  .commit-url {
    max-width: 300px;
    overflow: hidden;
  }
  .clickable i:hover,
  a:hover {
    color: #aaa;
  }
}

.dashboard-row {
  .finished-at,
  .refresh,
  .commit-url,
  .committer,
  .deploy,
  .configure,
  .run-time,
  .job-link {
    width: 1px;
    white-space: nowrap;
  }
}

@media (max-width: 1304px) {
  #dashboard {
    .history,
    .job-link a span {
      display: none;
    }
  }
}

@media (max-width: 980px) {
  #dashboard {
    .triggered-by-header,
    .commit-url,
    .job-link a span {
      display: none;
    }
  }
}

@media (min-width: 769px) {
  #dashboard {
    .finished-at,
    .refresh,
    .commit-url,
    .committer,
    .deploy,
    .configure,
    .run-time,
    .job-link {
      width: 1px;
      white-space: nowrap;
    }
  }
}

@media (max-width: 767px) {
  #dashboard {
    .finished-at {
      display: none;
    }
  }

  #build-page .job-title h3 {
    margin-bottom: 0.5em;
  }

  .navbar-fixed-top {
    margin-bottom: 0;
  }
}

@media (max-width: 650px) {
  #dashboard {
    overflow: auto;

    .deploy,
    .deploy-header,
    .refresh,
    .refresh-header,
    .configure,
    .configure-header,
    .committer,
    .committer-header,
    .github-header,
    .github-link {
      display: none;
    }
  }
}

@media (max-width: 450px) {
  #dashboard {
    table tr .project-name a {
      font-size: 14px;
      font-weight: normal;
      line-height: 25px;
    }
  }
}

.configure-action i {
  margin-top: 4px;
  display: inline-block;
  margin-left: 5px;
}

.docs-section {
  padding-top: 40px;
}
.docs p {
  font-size: 15px;
}
img.manual_setup {
  border: 1px solid #021a40;
}
.success {
  background: #9BCD9B;
}
.failure {
  background: #EE6363;
}
.success-text {
  color: #46a546;
}
.failure-text {
  color: #9d261d;
}
.error-text {
  color: #999;
}
.waiting-text {
  color: #0af;
}

footer {
  border-top:1px solid #ddd;
  background-color:#f0f0f0;
  padding:10px;
}

footer p {
  text-align: center;
  /* center align it with the container */

}
.dashboard-button,
.repo-action,
.start-manual-setup {
  float: right;
}
.header-emphasis {
  color: #455b87;
}
.job-pre-console {
  margin-top: 0;

  .job-pre-console-inner {
    min-height: 0;
  }
}
.job-list {
  border: 1px solid;
  border-radius: 3px;
  margin-left: 10px;
}
.job-list-item {
  width: 95%;
  border: 1px solid;
  border-radius: 3px;
  padding: 5px;
  margin: 10px;
}
.job-list-item:nth-child(2n) {
  background-color: #f5f5f5;
}
.job-notice {
  float: right;
}
#build-metadata {
  padding: 8px;
  border-radius: 3px;
}
#build-detail-buttons {
  border: 1px solid;
  border-radius: 3px;
  margin-left: 10px;
  padding: 10px;
}
.build-list-item {
  width: auto;
  padding: 5px;
  border-bottom: 1px solid #CCB;
}
.build-list-header {
  width: 90%;
}
#commit-id,
.build-item-committer {
  float: right;
}
#commit-msg,
#build-duration,
.build-item-duration {
  float: right;
}
div#repo-list-viewall {
  margin: 15px;
}
.results-detail-times {
  border-top: 1px solid;
  border-color: #999999;
}
table.log {
  font-family: "Monaco", Courier, monospace;
  font-size: 14px;
  width: 100%;
  table-layout: fixed;
  margin-bottom: 20px;
  clear: both;
}
tr.logEntry {
  height: 53px;
}
tr.logEntry td {
  border-top: solid thin #CCC;
  padding: 0.5em;
  text-align: left;
}
.logEntry {
  color: #444;
}
.logEntry.repeated {
  display: none;
}
a.repeats {
  font-size: 75%;
  padding: 5px 5px 2px 5px;
  background-color: #EEE;
  border: 1px solid #999;
  opacity: 0.8;
  color: black;
  text-decoration: none;
}
.commandDetails .request {
  height: 20px;
}
.commandDetails .answer {
  color: #909;
  float: right;
  max-width: 75%;
  text-align: right;
}
.commandDetails .result {
  font-size: 80%;
  display: inline;
}
.commandDetails span.duration {
  color: #999;
  font-size: 80%;
  padding-left: 15px;
}
.commandDetails table {
  border: none;
  margin-top: 5px;
  font-size: 80%;
  margin-left: 1em;
}
.commandDetails table th {
  border-spacing: 0px;
  padding: 0px;
  margin: 0px;
}
.commandDetails table td {
  border: none;
  border-spacing: 0px;
  padding: 0px;
  margin: 0px;
}
.passed {
  background-color: @strider-bg-passed;
}
.failed {
  background-color: @strider-bg-failed;
}
.errored {
  background-color: @strider-bg-errored;
}
.running {
  background-color: @strider-bg-running;
}
.warning {
  background-color: #fffca9;
}
.submitted {
  background-color: @strider-bg-running;
}
.repeated.passed {
  background-color: @strider-bg-passed;
}
.repeated.failed {
  background-color: @strider-bg-failed;
}
td.screenshot img {
  width: 40px;
  height: 30px;
}
tr.logEntry td.screenshot {
  font-family: 'Myriad Pro', Myriad, Helvetica, Arial, sans-serif;
  width: 6.5em;
  padding-left: 10px;
  text-align: center;
}
@media (max-width: 768px) {
  .repo-action {
    float: left;
  }
}
.gravatar {
  display: inline-block;
  margin-top: -2px;
  margin-bottom: 2px;
  margin-right: 3px;
  padding: 1px;
  line-height: 1px;
  vertical-align: middle;
  font-size: 1px;
  background: #fff;
  border: 1px solid #c8c8c8;
}
.hero-subunit {
  padding: 60px;
  margin-bottom: 30px;
  background-color: #f5f5f5;
  border-radius: 6px;
}
.hero-subunit p {
  font-size: 18px;
  font-weight: 200;
}
hero-vsub-unit {
  padding: 60px;
  margin-bottom: 30px;
  background-color: #f5f5f5;
  border-radius: 6px;
}
hero-vsub-unit p,
hero-vsub-unit label {
  font-size: 18px;
  font-weight: 200;
}
.big-label {
  padding: 1px 3px 2px;
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
  text-transform: uppercase;
  background-color: #999999;
  border-radius: 3px;
}

@media (min-width: 980px) {
  body .wrap {
    padding-top: 50px;
    padding-bottom: 51px;
    margin-bottom: -51px;
  }

  .nav-collapse {
    padding-left: 80px;
  }
}

@media (min-width: 768px) {
  body .wrap {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-bottom: 51px;
    margin-bottom: -51px;
  }

  footer p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-unit {
    padding: 30px;
    margin-bottom: 30px;
    background-color: #f5f5f5;
    border-radius: 6px;
  }
  .hero-unit h1 {
    margin-right: 0;
    margin-left: 0;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -1px;
  }
  .hero-unit p {
    font-size: 18px;
    font-weight: 200;
    line-height: 27px;
  }
}
/* Page header tweaks */
.page-header {
  background-color: #f5f5f5;
  padding: 20px 20px 10px;
  margin: -20px -20px 20px;
}
.topbar .btn {
  border: 0;
}
.spinner {
  vertical-align: middle;
  margin-right: 20px;
}
#spinner {
  display: none;
}
pre.console-output {
  overflow: auto;
  background-color: black;
  color: white;
  position: absolute;
  top: 65px;
  bottom: 0;
  left: 0;
  right: 0;
  white-space: pre;
}
pre.console-output-segment {
  width: 96%;
  overflow: auto;
  background-color: black;
  color: white;
}
span.green {
  color: green;
}
span.blue {
  color: blue;
}
span.red {
  color: #CE160C;
}
span.white {
  color: #BDC7C7;
}
span.yellow {
  color: #C6C33C;
}
span.magenta {
  color: magenta;
}
span.cyan {
  color: cyan;
}
span.grey {
  color: grey;
}
span.bg-green {
  background-color: green;
}
span.bg-blue {
  background-color: blue;
}
span.bg-red {
  background-color: #CE160C;
}
span.bg-white {
  background-color: #BDC7C7;
}
span.bg-yellow {
  background-color: #C6C33C;
}
span.bg-magenta {
  background-color: magenta;
}
span.bg-cyan {
  background-color: cyan;
}
span.bg-grey {
  background-color: grey;
}
span.bold {
  font-weight: bold;
}
span.italic {
  font-style: italic;
}
span.underline {
  text-decoration: underline;
}
.sidebar-nav {
  padding: 9px 0;
}
.dropdown-menu .sub-menu {
  left: 100%;
  position: absolute;
  top: 0;
  visibility: hidden;
  margin-top: -1px;
}
.dropdown-menu li:hover .sub-menu {
  visibility: visible;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.nav-tabs .dropdown-menu,
.nav-pills .dropdown-menu,
.navbar .brand {
  line-height: 1.2em;
}
.navbar .nav > li > a {
  line-height: 1.9em;
}
.navbar .dropdown-menu {
  margin-top: 0;
}
.navbar .sub-menu:before {
  border-bottom: 7px solid transparent;
  border-left: none;
  border-right: 7px solid rgba(0, 0, 0, 0.2);
  border-top: 7px solid transparent;
  left: -7px;
  top: 10px;
}
.navbar .sub-menu:after {
  border-top: 6px solid transparent;
  border-left: none;
  border-right: 6px solid #fff;
  border-bottom: 6px solid transparent;
  left: 10px;
  top: 11px;
  left: -6px;
}
.navbar .btn-navbar {
  color: #fff;
}
/* pricing (from wrapbootstrap template) */
#pricing h2 {
  text-align: center;
  font-size: 14pt;
  font-weight: 500;
}
#pricing span.price {
  color: #f14a29;
  display: block;
  font-size: 12pt;
}
#pricing p {
  padding-top: 10px;
  text-align: center;
}
#pricing ul {
  text-align: center;
}
.pricing_box {
  -webkit-box-shadow: 5px 8px 0px 0px black;
  -moz-box-shadow: 0 8px 0px 0px #d3d3d3;
  box-shadow: 5px 8px 6px -6px #d3d3d3;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
  background: #e1e1e1;
  padding: 10px 0px;
}
#pricing_select {
  background: #f14a29;
  color: #FFF;
}
#pricing_select small {
  color: #FFFFFF;
  font-weight: 600;
}
#pricing_select span.price {
  color: #FFFFFF;
}
#pricing_action {
  text-align: center;
  padding-top: 30px;
}

#server-errors {
  list-style-type: none;
  margin-left: 0;
}

// Bootstrap overrides
.table tbody tr:hover > td,
.table tbody tr:hover > th {
  background-color: transparent;
}

.navbar-fixed-top {
  margin-bottom: 18px;
}

#tab-project .inline-input {
  display: inline;
}

.current-user-gravatar {
  width: 24px;
}

// CodeMirror overrides
.CodeMirror.cm-s-twilight {
  border-radius: 3px;
  border: 1px solid transparent;
}
